package ex201;

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Rectangle rectangle = new Rectangle();

        Scanner input = new Scanner(System.in);
        rectangle.width = input.nextDouble();
        rectangle.height = input.nextDouble();

        System.out.printf("周长=%.2f, 面积=%.2f\n", rectangle.getPerimeter(), rectangle.getArea());
    }
}
